<titlemenu></titlemenu>
<div class="dj-card">
    <div class="dj-body" activate-input activate-select>
        <form role="form" name="editForm" novalidate>
            <div ng-include="'../main/partyExpand/joinUser/usermodel.html'"></div>
            <div panel-title data-title="'推荐和确定入党积极分子'"></div>
            <div class="dj-formtable">
                <table class="dj-table">
                    <tr>
                        <th>推荐方式<span style="color: red;">*</span></th>
                        <td ng-class="{ 'has-error' : this.editForm.recommendtype.$invalid &&  this.editForm.$submitted}">
                            <select class="form-control show-tick"
                                    ng-model="dataModel.recommendtype"
                                    ng-options="type.dickey as type.dicvalue for type in recommendTypeList"
                                    class="form-control"
                                    name="recommendtype" ng-required="true">
                                <option value="" selected>--请选择--</option>
                            </select>
                            <span ng-show="this.editForm.recommendtype.$invalid &&  this.editForm.$submitted"
                                  class="error">必填.</span>
                        </td>
                        <th>相关会议记录</th>
                        <td>
                            <div class="input-group input-group-search"
                                 title="选择会议"
                                 data-dataoptions="selectMeeting" bsselectdata-pro>
                                <input name="meetingName" type="text" ng-model="meetingName"
                                       class="form-control"
                                       ng-disabled="true"/>
                                <span class="input-group-addon"><i class="material-icons">search</i></span>
                            </div>
                        </td>
                    </tr>
                    <tr ng-if="dataModel.recommendtype==2">
                        <th>加入群团组织时间</th>
                        <td ng-class="{ 'has-error' : this.editForm.joingrouptime.$invalid &&  this.editForm.$submitted}">
                            <input name="joingrouptime" class="form-control"
                                   autocomplete="off"
                                   autoclose="true"
                                   data-date-format="yyyy-MM-dd" data-date-type="date"
                                   ng-model="dataModel.joingrouptime"
                                   placeholder="" bs-datepicker ng-required="true"/>
                            <span ng-show="this.editForm.joingrouptime.$invalid &&  this.editForm.$submitted"
                                  class="error">必填.</span>
                        </td>
                        <th></th>
                        <td>

                        </td>
                    </tr>
                    <tr>
                        <th>确定积极分子时间<span style="color: red;">*</span></th>
                        <td ng-class="{ 'has-error' : this.editForm.confirmtime.$invalid &&  this.editForm.$submitted}">
                            <input name="confirmtime" class="form-control"
                                   autocomplete="off"
                                   autoclose="true"
                                   data-date-format="yyyy-MM-dd" data-date-type="date"
                                   ng-model="dataModel.confirmtime"
                                   placeholder="" bs-datepicker ng-required="true"/>
                            <span ng-show="this.editForm.confirmtime.$invalid &&  this.editForm.$submitted"
                                  class="error">必填.</span>
                        </td>
                        <th>进度完成时间<span style="color: red;">*</span></th>
                        <td ng-class="{ 'has-error' : this.editForm.progresstime.$invalid &&  this.editForm.$submitted}">
                            <input name="progresstime" class="form-control"
                                   autocomplete="off"
                                   autoclose="true"
                                   data-date-format="yyyy-MM-dd" data-date-type="date"
                                   ng-model="dataModel.progresstime"
                                   placeholder="" bs-datepicker ng-required="true"/>
                            <span ng-show="this.editForm.progresstime.$invalid &&  this.editForm.$submitted"
                                  class="error">必填.</span>
                        </td>
                    </tr>
                    <!--<tr>
                        <th>
                            <label ng-if="dataModel.recommendtype==1 || dataModel.recommendtype==null">推荐对象表现</label>
                            <label ng-if="dataModel.recommendtype==2">群团组织推荐意见</label>
                        </th>
                        <td colspan="3">
                            <textarea class="form-control" ng-model="dataModel.showcontent" rows="5"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label ng-if="dataModel.recommendtype==1 || dataModel.recommendtype==null">推荐情况</label>
                            <label ng-if="dataModel.recommendtype==2">上级群团组织意见</label>
                        </th>
                        <td colspan="3">
                            <textarea class="form-control" ng-model="dataModel.opinioncontent" rows="5"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>积极分子决议模板</th>
                        <td>
                            <select class="form-control show-tick"
                                    ng-model="applyModelId"
                                    ng-options="type.WORDTEMPLATEID as type.TITLE for type in applyModelList"
                                    class="form-control"
                                    name="applyModelName">
                                <option value="" selected>&#45;&#45;请选择&#45;&#45;</option>
                            </select>
                        </td>
                        <th style="background-color: white;border-left: none;border-right: none;"></th>
                        <td style="border-left: none;text-align: right;padding-right: 10px;">
                            <button type="button" class="btn btn-primary dropdown-toggle" title="导出word"
                                    ng-click="exportWord()">
                                导出word
                            </button>
                        </td>
                    </tr>
                    <tr>
                        <th>积极分子决议</th>
                        <td colspan="3">
                            <textarea class="form-control" ng-model="dataModel.decisioncontent" ui-ueditor></textarea>
                        </td>
                    </tr>-->
                </table>
            </div>

            <bsfiles ng-model="reqFileModel"/>
            <div class="form_foot">
                <button type="button" class="btn btn-default" ng-click="pagechange();">返回</button>
                <button type="submit"
                        class="btn btn-primary"
                        ng-click="submitData(this.editForm.$valid)">提交
                </button>
            </div>
        </form>
    </div>
</div>